package com.esun.rabbit2.communicaters.recharg;

import com.esun.util.log.EDebug;

/**
 * @ClassName: LoginController
 * @Description: TODO(用户登陆控制类)
 * @author Miko baoz@500wan.com
 * @date 2011-1-13 下午09:55:15
 * 
 */
public class LoginControllerRecharge {

	/**
	 * 用户登陆
	 * 
	 * @param userName
	 *            用户名
	 * @param userPassword
	 *            密码
	 * @return 是否成功登陆
	 * 
	 * @author Miko
	 */
	public boolean login(String userName, String userPassword) {

		String sendInfo = userName + DataShare.ONESPACE + userPassword;

		EDebug.o(sendInfo);
		Bussiness10200 loginl = new Bussiness10200(RechargeUserInfo.getUserInfo().getSessionId(), sendInfo, DataShare.USER_LOGIN, DataShare.CT_NONE,
				DataShare.ET_NONE);

		EDebug.o(this, "why not do this line?");

		return loginl.isLogin();
	}

}
